<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Ruby on Rails: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Ruby Study Notes - Best Ruby Guide, Ruby Tutorial" />
<meta name="keywords" content="ruby on rails,ruby study notes,ruby guide,free ruby programming course,best ruby guide,ruby tutorials,ruby tutorial,learn ruby,ruby,ruby on rails,ruby rails,ruby learning,ruby tutoring,learning ruby,ruby programming,ruby on rails development,ruby training" />
<meta name="Distribution" content="Global" />
<meta name="author" content="Satish Talim / Original design: Erwin Aligam - ealigam@gmail.com" />
<meta name="copyright" content="Satish Talim 2007 and beyond..." />
<meta name="verify-v1" content="rFu86se+IkbtF+bH8mgJBKwU5HnKaSd8Ghw9umXQOkM=" />
<meta name="robots" content="index,follow" />
<meta http-equiv="Expires" content="0" />
<meta name="revisit-after" content="1 days" />
<link rel="stylesheet" href="/images/NewOrange.css" type="text/css" />
<!-- Google Analytics code -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-59044-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!-- Google Analytics code ends -->
</head>

<body>
<!-- wrap starts here -->
<div id="wrap">

    <div id="header">

        <h1 id="logo">Ruby<span class="orange">Learning.github.io</span></h1>
        <h2 id="slogan">Ruby helps programmers have more fun!</h2>

    </div>

    <div id="menu">
        <ul>
            <li><a href="/" title="Home page for rubylearning.github.io">Home</a></li>
            <li id="current"><a href="/satishtalim/tutorial.html" title="Get started Learning Ruby here...">Tutorial</a></li>
            <li><a href="/download/downloads.html" title="Download this tutorial as an eBook">Downloads</a></li>
            <li><a href="/other/testimonials.html" title="People around the world who benefited from this site">Testimonials</a></li>
            <li><a href="/other/ruby_gurus.html" title="Interviews I took of Ruby Gurus around the world">Gurus</a></li>
            <li><a href="/other/certification.html" title="Get certified in Ruby">Certification</a></li>
            <li><a href="/satishtalim/ruby_guide.html" title="Ruby Guide, Mentor">Mentor</a></li>
            <li><a href="/other/ruby_video_search.html" title="Watch videos on Ruby/Rails">Videos</a></li>
            <li><a href="/blog/" title="Ruby blog of Learning Ruby site">Blog</a></li>
            <li><a href="/satishtalim/tutorial.html" title="Online Ruby Course">Online Course</a></li>
            <li><a href="/contact/contact.html" title="Contacting Satish Talim">Contact</a></li>
            <li><a href="/satishtalim/about.html" title="Information about Satish Talim">About</a></li>
        </ul>
    </div>

    <!-- content-wrap starts here -->
    <div id="content-wrap">

            <div id="main">

                <div id="main-inner"><a name="TemplateInfo"></a>
                <h1>Ruby on Rails</h1>

                <h3>What is Ruby on Rails?</h3>

                <p>The Ruby on Rails phenomenon is sweeping through our industry with reckless disregard for established programming languages, longstanding conventions, or commercial support.</p>

                <p>But what is Ruby on Rails? Rails is a full-stack (Rails includes everything you need: Model-View-Controller, O/RM, unit testing, and build and deployment automation. Because everything is tightly integrated, it is ridiculously easy to get started), open-source web framework (support structure) in Ruby, that closely follows the <a href="http://en.wikipedia.org/wiki/Model-view-controller">Model View Controller</a> (MVC) architecture for writing real-world applications (Rails applications are written in Ruby) with less code and no cumbersome XML configuration files.</p>

                <p>Simply put, <em>Rails is an open source Ruby framework for developing database-backed web applications</em>. Rails makes it easier to develop, deploy and maintain web applications. Also, Rails has become the framework of choice for the implementation of a wide-range of Web 2.0 applications.</p>

                <h3>Rails Installation</h3>

                <p>To install Ruby on Rails on Windows, we need to do the following:</p>

                <ol>
                <li>Install Ruby 1.8.6 (which we have already done).</li>
                <li>Check whether you have RubyGems installed by typing <code>gem --version</code> in a command window. We should have this too.</li>
                <li>Now we'll use RubyGems to install Rails and a few things that Rails needs. <em>Ensure that your internet connection is active</em>. In a command window, type <code>gem install rails --include-dependencies</code></li>
                <li>Congratulations! You are now on Rails.</li>
                <li>There's one more step you have to perform before you can start development. Rails works with DB2, MySQL, Oracle, Postgres, SQL Server and SQLite databases. For all but MySQL, you will need to install a database driver, a library that Rails can use to connect to and use your database engine. Rails comes with a built-in driver (written in pure Ruby) for MySQL databases. We shall use MySQL 5.0.27 and the installation instructions are in the file <a href="/data/mysqlsetup.doc">mysqlsetup.doc</a>.</li>
                </ol>

                <p>Talking in depth about Ruby on Rails is beyond the scope of the Ruby Study Notes here. The following resources would help you get started on Rails.</p>

                <ul>
                <li><a href="http://www.rubyonrails.org/">Ruby on Rails</a></li>
                <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
                <li><a href="http://www.pragmaticprogrammer.com/titles/rails/index.html">Rails Book</a></li>
                <li><a href="http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html">OnLamp Tutorial</a></li>
                <li><a href="http://www.rubyinside.com/21-ruby-tricks-902.html">Rails Tips</a></li>
                <li><a href="https://www.theblogstarter.com/intro-to-ruby-on-rails/">Ruby on Rails Tutorials</a> Recommended by reader Milissa.</li>
                </ul>

                <p class="post-footer align-right">
                  <strong>
                    <a href="/satishtalim/ruby_mysql_tutorial.html">&lt;Ruby/MySQL Tutorial | </a>
                    <a href="/satishtalim/tutorial.html">TOC | </a>
                    <a href="/satishtalim/ruby_activerecord_and_mysql.html">ActiveRecord and MySQL&gt;</a>
                  </strong>
                </p>

            </div>
            <!-- main inner ends here -->
        </div>

            <div id="rightbar">

            </div>

    <!-- content-wrap ends here -->
    </div>

<!-- wrap ends here -->
</div>

<!-- footer starts here -->
<div id="footer">
    <!-- CHANGE THE FOOTER -->
    <p>&copy; 2006-2021 <strong>rubylearning.github.io - A Ruby Tutorial</strong>&nbsp;&nbsp;Page Updated: 5th Jan. 2021 | Design: <a href="mailto:ealigam@gmail.com">Erwin Aligam</a> | Valid: <a href="http://validator.w3.org/check/referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/">Home</a> | <a href="/privacy.html">Privacy</a> | <a href="/sitemap.html">Sitemap</a></p>
</div>
<!-- footer ends here -->
</body>
</html>
